rows = 9
for i in range(1, rows+1):
    print(' ' * (9 - i) * 3, end='')
    for j in range(1, i + 1):
        result = i * j
        if j!= 1:
            print(' ', end='')
        print(f'{i}x{j}={result}', end='')
    print()